-- GENERATED SPELL FOR [Smolderthorn Seer] --


function spell0_9269(pUnit, Event) --@Healing Wave,Heal--
pUnit:FullCastSpellOnTarget(12492,pUnit)
pUnit:RegisterEvent('Sorts_9269', 3000, 1)
end

function spell1_9269(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(15801,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_9269', 3000, 1)
end

function spell2_9269(pUnit, Event) --@Lightning Shield,n/a--
pUnit:FullCastSpellOnTarget(13585,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_9269', 0, 1)
end

function spell3_9269(pUnit, Event) --@Shrink,n/a--
pUnit:FullCastSpellOnTarget(15802,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_9269', 3000, 1)
end

function Sorts_9269(pUnit, Event)
local choix_sorts_9269 = math.random(0, 3)
if choix_sorts_9269 == 0 then
pUnit:RegisterEvent('spell0_9269', 1, 1)
end
if choix_sorts_9269 == 1 then
pUnit:RegisterEvent('spell1_9269', 1, 1)
end
if choix_sorts_9269 == 2 then
pUnit:RegisterEvent('spell2_9269', 1, 1)
end
if choix_sorts_9269 == 3 then
pUnit:RegisterEvent('spell3_9269', 1, 1)
end
end

function mob9269_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_9269', math.random(1500, 3000), 1)
end

function mob9269_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9269_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9269_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(9269, 1, 'mob9269_Action')
RegisterUnitEvent(9269, 2, 'mob9269_Leave')
RegisterUnitEvent(9269, 3, 'mob9269_Kill')
RegisterUnitEvent(9269, 4, 'mob9269_Die')
